<template>
  <div class="child1">
    <p class="child">这里是child1中的child,这里颜色是红色</p>
  </div>
</template>
<style lang="less" scoped>
.child1 {
  .child {
    color: #f00;
  }
}
</style>